package com.gyx.lottery.service.dto;

import com.gyx.lottery.service.enums.ActicityPrizeTiersEnum;
import com.gyx.lottery.service.enums.ActivityPrizeStatuseEnum;
import com.gyx.lottery.service.enums.ActivityStatusEnum;
import com.gyx.lottery.service.enums.ActivityUserStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ActivityDetailDTO implements Serializable {
private Long activityId;
private String activityName;
private String desc;
private ActivityStatusEnum status;
private List<PrizeDTO>prizeDTOList;
    private List<UserDTO>userDTOList;
public boolean valid()
{
    return ActivityStatusEnum.RUNNING.equals(status);
}
@Data
public static class PrizeDTO{
    private Long prizeId;
    private String name;
    private String imageUrl;
    private Long prizeAmount;
    private ActicityPrizeTiersEnum prizeTiers;
    private BigDecimal price;
    private String description;
    private ActivityPrizeStatuseEnum status;
    public boolean valid()
    {
        return ActivityPrizeStatuseEnum.INIT.equals(status);
    }
}
@Data
public static class UserDTO{
    private Long userId;
    private String userName;
    private ActivityUserStatusEnum status;
    public boolean valid()
    {
        return ActivityUserStatusEnum.INIT.equals(status);
    }
    }

}
